//商品管理-专题排期列表-配置文件
App.util.ns('Admin.Goods.JmTheme');
Admin.Goods.JmTheme.Conf = {
    columns: [
        {name: '名称', value: 'name'},
        {name: '专题简介', width: '350px',value: 'introduction'},
        {name: '状态', width: '120px',value: function(item){
            switch (item.status+'') {
                case '1':
                    return '在线';
                case '2':
                    return '下线';
            }
        }},
        {name: '创建日期', width: '90px', value: function(item){
            return App.util.formator.date(item.created_at);
        }}
    ],
    form: [
        {type: 'hidden', name: 'id'},
        {type: 'input', name: 'name', title: '名称', maxLength: 40, required: true, rule: {
            type: 'str',
            range: [1, 40]
        }},
        // {type: 'img', name: 'icon', title: '专题图标',rule: {
        //     type: 'str',
        //     range: [0, 255]
        // }},
        {type: 'img', name: 'poster', title: '专题海报',rule: {
            type: 'str',
            range: [0, 255]
        }},
        {type: 'img', name: 'square', title: '专题方图',rule: {
            type: 'str',
            range: [0, 255]
        }},
        {type: 'textarea', name: 'introduction', title: '专题简介',maxLength: 100, rule: {
            type: 'str',
            range: [0, 100]
        }},
    ]
};